﻿@{
    ViewBag.Title = "错误";
    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}
@model MyWebApp.Common.UIAttribute.MyHandleErrorInfo
@section Head{
    <style type="text/css">
        .error-page {
            width: 800px;
        }
    </style>
}
<!-- Content Header (Page header)-->
<section class="content-header">
    <h1>@Model.ErrorName</h1>
    @*<ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i><span id="spPath"></span></a></li>
    </ol>*@
</section>
<!-- Main content -->
<section class="content">
 <div class="error-page">
        <h2 class="headline text-red">500</h2>
        <div class="error-content">
          <h3><i class="fa fa-warning text-red"></i> Oops! Something went wrong.</h3>
        @if (Model.ErrorType== "SessionTimeoutException")
        {
            <p>
                你还未登录或者已经登录超时,请<a href="/Security/Login">重新登录</a>尝试
            </p>
        }
        else
        {
          <p>
            有错误发生，请联系管理员，我们会尽快解决。
           你可以<a href="/Security/Login">重新登录</a>尝试。
          </p>
         <div class="box box-solid box-warning collapsed-box">
            <div class="box-header with-border">
                <h3 class="box-title">错误明细</h3>
                <div class="box-tools pull-right">
                <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i></button>
                </div><!-- /.box-tools -->
            </div><!-- /.box-header -->
            <div class="box-body">
                <p>异常信息：
                    Controller:@Model.ControllerName/@Model.ActionName 
                    Message:@Model.Exception.Message
                    StackTrace:@Model.Exception.StackTrace
                </p>
            </div><!-- /.box-body -->
         </div>
        }
        </div>
      </div>
      <!-- /.error-page -->
</section>
